<%= form_for(@transportista) do |f| %>
    <% if @transportista.errors.any? %>
        <div id="error_explanation">
            <h2><%= pluralize(@transportista.errors.count, "error") %> prohibited this transportista from being saved:</h2>

            <ul>
                <% @transportista.errors.full_messages.each do |msg| %>
                    <li><%= msg %></li>
                <% end %>
            </ul>
        </div>
    <% end %>


    <div class="formulario">
        <div class="form-titulo">
            <h2>Datos Generales del <strong>Transportista</strong></h2>

            <div class="form-buttons">
                <a class="button-adicional" id="dropdownMenu2" data-toggle="dropdown" rel="tooltip" data-placement="top" data-original-title="Mas Acciones">
                    <i class="fa fa-cog"></i>
                </a>
                <a class="button-adicional" href="#" data-toggle="collapse" data-target="#form-data" rel="tooltip" data-placement="top" data-original-title="Colapsar">
                    <i class="fa fa-chevron-down"></i>
                </a>
                <a class="button-adicional" href="#" rel="tooltip" data-placement="top" data-original-title="Ayuda">
                    <i class="fa fa-question-circle"></i>
                </a>

                <%= link_to transportistas_path, class: "btn btn-primary btn-xs" do %>
                    <i class="fa fa-arrow-left"></i> Regresar
                <% end %>
            </div>
        </div>

        <div class="in form-body" id="form-data">
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group campo-data">
                        <label>Clave Proveedor</label>
                        <%= f.number_field :ClaveProveedor, :class => "form-control", :tabindex => "1" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Nombre Razon</label>
                        <%= f.text_field :NombreRazon, :class => "form-control", :tabindex => "3" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Ciudad</label>
                        <%= f.text_field :Ciudad, :class => "form-control", :tabindex => "5" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Codigo Postal</label>
                        <%= f.number_field :CodigoPostal, :class => "form-control", :tabindex => "7" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>DOT</label>
                        <%= f.text_field :DOT, :class => "form-control", :tabindex => "9" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Telefono</label>
                        <%= f.text_field :Telefono, :class => "form-control", :tabindex => "11" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Emails</label>
                        <%= f.text_area :Emails, :class => "form-control txt-area", :tabindex => "13" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Contacto Admin Cargo</label>>
                        <%= f.number_field :ContactoAdminCargo, :class => "form-control", :tabindex => "15" %>
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group campo-data">
                        <label>Abreviacion</label>
                        <%= f.text_field :Abreviacion, :class => "form-control", :tabindex => "2" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Dirección</label>
                        <%= f.text_field :Direccion, :class => "form-control", :tabindex => "4" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Estado</label>
                        <%= f.text_field :Estado, :class => "form-control", :tabindex => "6" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>CAT</label>
                        <%= f.text_field :CAT, :class => "form-control", :tabindex => "8" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>SCAC</label>
                        <%= f.text_field :SCAC, :class => "form-control", :tabindex => "10" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Fax</label>
                        <%= f.text_field :Fax, :class => "form-control", :tabindex => "12" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Contacto Trafico Cargo</label>
                        <%= f.number_field :ContactoTraficoCargo, :class => "form-control", :tabindex => "14" %>
                    </div>

                    <div class="form-group campo-data">
                        <label>Responsable Pagos</label>
                        <%= f.number_field :ResponsablePagos, :class => "form-control", :tabindex => "16" %>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="formulario-footer">
      <%= f.submit "Guardar", :class => "btn btn-primary", :tabindex => "17" %>
      <%= link_to "Cancelar", transportistas_path, :class => "btn btn-default", :tabindex => "18" %>
    </div>
<% end %>
